package com.itcast.homework05.work12;

import java.util.Scanner;

/*
要写注释哦!!!
*/
public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入手机号:");
        String phone = scanner.next();
        String regExp = "^(1[3-9])\\d{9}$";
        if (phone.matches(regExp)) {
            System.out.println(phone + "是符合要求的手机号");
        } else {
            System.out.println(phone + "不是符合要求的手机号");
        }
    }
}
